package com.qiaolang.Service;

import com.qiaolang.dao.CardDAO;
import com.qiaolang.dao.RoleDAO;
import com.qiaolang.dao.UserDAO;
import com.qiaolang.pojo.Card;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by lenovo on 2017/11/12.
 */
@Service
public class CardServiceImpl {
    @Autowired
    private CardDAO cdao;

    public boolean register(Card card){
        return cdao.register(card);
    }
    public Card queryById(String userno){
        return cdao.queryById(userno);
    }


    //users表的操作 写的不标准
    public boolean del(String userno){
        return cdao.del(userno);
    }
    public boolean upt(String userno,String role){
        return cdao.upt(userno,role);
    }
    public boolean uptStatus(String userno){//挂失
        return cdao.uptStatus(userno);
    }
    public boolean buKa(String userno){//挂失
        return cdao.buKa(userno);
    }
    public boolean chongZhi(String userno,int balance){//挂失
        return cdao.chongZhi(userno,balance);
    }
    public String getBalance(String userno){//挂失
        return cdao.getBalance(userno);
    }
}